package kingAI.calc.util;

/**
 * Contains miscellaneous operations.
 * 
 * @author Equilibrium
 * @version 1.0
 */
public class Misc {
	/**
	 * Positivizes the given argument.
	 * 
	 * @param arg Real number to positivize.
	 * @return 0 if argument is negative, argument itself if positive.
	 */
	public static double positivize(double arg){
		if(arg>0.0)
			return arg;
		return 0.0;
	}
}
